package com.gc.common.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.gc.common.dto.MessageDTO;
import com.gc.common.entity.Message;

public interface MessageMapper {
    int deleteByPrimaryKey(Integer messageId);

    int deleteInIds(@Param("ids") String ids);

    int insert(Message record);

    int insertSelective(Message record);

    Message selectByPrimaryKey(Integer messageId);

    int updateByPrimaryKeySelective(Message record);

    int updateByPrimaryKey(Message record);

    List<Message> selectByDTO(@Param("dto") MessageDTO dto);

    List<Map<String, Object>> selectUnread();
}